﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FetchAndProcess.Models;
using WebDUPlugIn.Crawlers;

namespace WebDUPlugIn.WebDUReporter
{
    class WebDUReporter : ReportSummaryIntf
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public bool reportSummary()
        {
            log.DebugFormat("Starting Up Reporting Summary $$$$$$$$$$$$$$$");

            reportEntities();
            log.Debug("Writing URLs to a file");
            CrawlDictionary.DumpDictionarytoFile();
            log.DebugFormat("Completed  Reporting Summary $$$$$$$$$$$$$$$");
            return true;
        }

        public bool reportEntities()
        {
            log.Debug("Writing Entities to a File ");
            ExtractedElements.DumpDictionarytoFile();
            return true;
        }
    }
}
